package com.yumeno.market_goods.dao;

import com.yumeno.market_goods.pojo.entity.User;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserDao {

    //根据主键删除
    int deleteByPrimaryKey(Integer userId);

    //插入数据
    int insert(User record);

    //选择性插入
    int insertSelective(User record);

    //根据主键查询
    User selectByPrimaryKey(Integer userId);

    //根据主键选择性更新
    int updateByPrimaryKeySelective(User record);

    //根据主键更新所有字段
    int updateByPrimaryKey(User record);

    //根据电话查询所有字段
    User selectByPhone(String phone);
}